<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view locale="#{SessionLogsGestionBean.localeSetting}">
        <f:loadBundle basename="UtilidadesSetup" var="utilidadesSetup"/>
        <f:loadBundle basename="ParametrosSetup" var="parametrosSetup"/>
        <f:loadBundle basename="LogsGestionSetup" var="logsGestionSetup"/>
        <div align="center" style="width: 100%">
            <ui:themeLinks binding="#{ListadoLogsCargueGestionPage.themeLinks1}" id="themeLinks1"/>
            <ui:form binding="#{ListadoLogsCargueGestionPage.formLogsGestion}" id="formLogsGestion">
                <table>
                    <tr>
                        <td align="center">
                            <!-- contenedorGridPanel -->
                            <h:panelGrid columns="1" id="contenedorGridPanel">
                                
                                    <h:panelGrid columns="2" style="text-align: center" headerClass="headerClassDataTable">
                                        <f:facet name="header">
                                            <h:outputText value="Opciones de Búsqueda"/>
                                        </f:facet>
                                        <h:panelGroup style="display: block; text-align: left">                                    
                                            <h:panelGrid columns="2">
                                                <h:outputText styleClass="outputText" value=" EMPRESA DE MENSAJERIA "/>
                                                <ui:dropDown binding="#{ListadoLogsCargueGestionPage.dropDownLogsGestion}" id="dropDownLogsGestion"
                                                    items="#{SessionLogsGestionBean.empresasMensajeria}" styleClass="select"/>

                                                <h:panelGrid columns="3">                                            
                                                    <h:panelGrid>
                                                        <h:outputText styleClass="outputText" value="DESDE: "/>
                                                        <ui:calendar binding="#{ListadoLogsCargueGestionPage.calendarFechaLog1}"
                                                            dateFormatPattern="#{logsGestionSetup.dateFormatCalendar}" id="calendarFechaLog1"
                                                            maxDate="#{SessionLogsGestionBean.maxDate}" minDate="#{SessionLogsGestionBean.minDate}" required="true" selectedDate="#{SessionLogsGestionBean.selectedDate1}">
                                                            <f:convertDateTime pattern="#{logsGestionSetup.dateFormatCalendar}"/>
                                                        </ui:calendar>
                                                    </h:panelGrid>
                                                    <h:outputText style="color: white" styleClass="outputText" value=" ______ "/>
                                                    <h:message for="calendarFechaLog1" id="calendarFechaGeneracion1Message" styleClass="portlet-msg-alert"/>   
                                                </h:panelGrid>

                                                <h:panelGrid columns="3"> 
                                                    <h:panelGrid>
                                                        <h:outputText styleClass="outputText" value="HASTA: "/>
                                                        <ui:calendar binding="#{ListadoLogsCargueGestionPage.calendarFechaLog2}"
                                                            dateFormatPattern="#{logsGestionSetup.dateFormatCalendar}" id="calendarFechaLog2"
                                                            maxDate="#{SessionLogsGestionBean.maxDate}" minDate="#{SessionLogsGestionBean.minDate}" required="true" selectedDate="#{SessionLogsGestionBean.selectedDate2}">
                                                            <f:convertDateTime pattern="#{logsGestionSetup.dateFormatCalendar}"/>
                                                        </ui:calendar>
                                                    </h:panelGrid>
                                                    <h:outputText style="color: white" styleClass="outputText" value=" ______ "/>
                                                    <h:message for="calendarFechaLog2" id="calendarFechaGeneracion2Message" styleClass="portlet-msg-alert"/>
                                                </h:panelGrid> 

                                            </h:panelGrid>                                            
                                        </h:panelGroup>
                                        <h:panelGroup style="display: block; text-align: left">
                                            <h:commandButton action="#{ListadoLogsCargueGestionPage.buscarButton_action}"
                                                binding="#{ListadoLogsCargueGestionPage.buscarButton}" id="buscarButton" styleClass="button" value="BUSCAR"/>
                                        </h:panelGroup>
                                    </h:panelGrid>
                                
                                <h:panelGrid columns="1" headerClass="headerClassDataTable">
                                    <f:facet name="header">
                                        <h:outputText value="#{SessionLogsGestionBean.tituloBusqueda}"/>
                                    </f:facet>
                                    <h:dataTable binding="#{ListadoLogsCargueGestionPage.dataTableLogsGestion}" headerClass="headerClassDataTable" id="dataTableLogsGestion" 
                                        rowClasses="rowClassBlue,rowClassWhite" value="#{ListadoLogsCargueGestionPage.logsCargueGestion}" rows="50" var="currentLog">
                                        <h:column binding="#{ListadoLogsCargueGestionPage.column1}" id="column1">
                                            <f:facet name="header">
                                                <h:outputText binding="#{ListadoLogsCargueGestionPage.outputText2}" id="outputText2" value="Codigo"/>
                                            </f:facet>
                                            <h:panelGrid columns="1" style="text-align: center" width="100%">
                                                <h:outputText binding="#{ListadoLogsCargueGestionPage.outputText1}" id="outputText1" styleClass="outputTextDataTable" value="#{currentLog.codigoCargueGestion}"/>
                                            </h:panelGrid>
                                        </h:column>
                                        <h:column binding="#{ListadoLogsCargueGestionPage.column2}" id="column2">
                                            <f:facet name="header">
                                                <h:outputText binding="#{ListadoLogsCargueGestionPage.outputText4}" id="outputText4" value="Responsable"/>
                                            </f:facet>
                                            <h:outputText binding="#{ListadoLogsCargueGestionPage.outputText3}" id="outputText3" styleClass="outputTextDataTable" value="#{currentLog.codigoResponsable}"/>
                                        </h:column>
                                        <h:column binding="#{ListadoLogsCargueGestionPage.column3}" id="column3">
                                            <f:facet name="header">
                                                <h:outputText binding="#{ListadoLogsCargueGestionPage.outputText6}" id="outputText6" value="Proveedor"/>
                                            </f:facet>
                                            <h:outputText binding="#{ListadoLogsCargueGestionPage.outputText5}" id="outputText5" styleClass="outputTextDataTable" value="#{currentLog.nombreProveedor}"/>
                                        </h:column>
                                        <h:column binding="#{ListadoLogsCargueGestionPage.column4}" id="column4">
                                            <f:facet name="header">
                                                <h:outputText value="Fecha Gestion"/>
                                            </f:facet>
                                            <h:panelGrid columns="1" style="text-align: center" width="100%">
                                                <h:outputText binding="#{ListadoLogsCargueGestionPage.outputText7}" id="outputText7" styleClass="outputTextDataTable" value="#{currentLog.fechaCargue}"/>
                                            </h:panelGrid>
                                        </h:column>
                                        <h:column binding="#{ListadoLogsCargueGestionPage.column5}" id="column5">
                                            <f:facet name="header">
                                                <h:outputText value="Registros Cargados"/>
                                            </f:facet>
                                            <h:panelGrid columns="1" style="text-align: center" width="100%">
                                                <h:outputText binding="#{ListadoLogsCargueGestionPage.outputText8}" id="outputText8" styleClass="outputTextDataTable" value="#{currentLog.totalRegistros}"/>
                                            </h:panelGrid>
                                        </h:column>
                                        <h:column binding="#{ListadoLogsCargueGestionPage.column6}" id="column6">
                                            <f:facet name="header">
                                                <h:outputText value="Numero Errores"/>
                                            </f:facet>
                                            <h:panelGrid columns="1" style="text-align: center" width="100%">
                                                <h:outputText binding="#{ListadoLogsCargueGestionPage.outputText9}" id="outputText9" styleClass="outputTextDataTable" value="#{currentLog.numeroErrores}"/>
                                            </h:panelGrid>
                                        </h:column>
                                        <h:column binding="#{ListadoLogsCargueGestionPage.column7}" id="column7">
                                            <f:facet name="header">
                                                <h:outputText binding="#{ListadoLogsCargueGestionPage.outputText10}" id="outputText10" value="Archivo Informe"/>
                                            </f:facet>
                                            <h:panelGrid columns="1" style="text-align: center" width="100%">
                                                <ui:hyperlink url="#{parametrosSetup.urlServerProduccion}#{utilidadesSetup.utilidadesWebApp}#{utilidadesSetup.folderServletDownloadFile}#{utilidadesSetup.servletDownloadFile}?#{currentLog.pathArchivo}">
                                                    <ui:image styleClass="guiaDistribucionImage" url="#{utilidadesSetup.saveDownloadImg}"/>
                                                </ui:hyperlink>
                                            </h:panelGrid>
                                        </h:column>
                                        <f:facet name="footer">
                                            <h:panelGroup binding="#{ListadoLogsCargueGestionPage.groupPanel1}" id="groupPanel1"
                                                style="display: block; text-align: center" styleClass="list-paging-footer">
                                                <h:commandButton action="#{ListadoLogsCargueGestionPage.dataTableLogsGestion_firstPageAction}"
                                                    binding="#{ListadoLogsCargueGestionPage.dataTableLogsGestionFooterFirstButton}"
                                                    id="dataTableLogsGestionFooterFirstButton" image="#{utilidadesSetup.firstPageImg}" immediate="true"/>
                                                <h:commandButton action="#{ListadoLogsCargueGestionPage.dataTableLogsGestion_previousPageAction}"
                                                    binding="#{ListadoLogsCargueGestionPage.dataTableLogsGestionFooterPreviousButton}"
                                                    id="dataTableLogsGestionFooterPreviousButton" image="#{utilidadesSetup.previousPageImg}" immediate="true"/>
                                                <h:commandButton action="#{ListadoLogsCargueGestionPage.dataTableLogsGestion_nextPageAction}"
                                                    binding="#{ListadoLogsCargueGestionPage.dataTableLogsGestionFooterNextButton}"
                                                    id="dataTableLogsGestionFooterNextButton" image="#{utilidadesSetup.nextPageImg}" immediate="true"/>
                                                <h:commandButton action="#{ListadoLogsCargueGestionPage.dataTableLogsGestion_lastPageAction}"
                                                    binding="#{ListadoLogsCargueGestionPage.dataTableLogsGestionFooterLastButton}"
                                                    id="dataTableLogsGestionFooterLastButton" image="#{utilidadesSetup.lastPageImg}" immediate="true"/>
                                            </h:panelGroup>
                                        </f:facet>                                        
                                    </h:dataTable>
                                </h:panelGrid>
                            </h:panelGrid>
                            <h:panelGrid binding="#{ListadoLogsCargueGestionPage.mensajeAlertGridPanel}" id="mensajeAlertGridPanel" rendered="#{SessionLogsGestionBean.renderedMensajeAlertGridPanel}">
                                <ui:alert binding="#{ListadoLogsCargueGestionPage.mensajeAlert}" id="mensajeAlert"/>
                            </h:panelGrid>
                        </td>
                    </tr>
                </table>
            </ui:form>
        </div>
    </f:view>
</jsp:root>
